package cn.tedu.service.impl;

import cn.tedu.dao.IUserDao;
import cn.tedu.dao.impl.IUserDaoImpl;
import cn.tedu.service.IUserService;
/**
 * @Author JokerQ
 * @Date 2021/07/13 15:56
 * @Description 业务层接口实现类
 * @Since version-1.0
 */
public class IUserServiceImpl implements IUserService {
    private IUserDao userDao = new IUserDaoImpl();
    //验证单例模式
    private int a = 0;
    public void add() {
        System.out.println(a);
        userDao.add();
        System.out.println("注册成功");
        a++;
    }
}
